<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0 , minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>Vite App</title>
  </head>
  <script>
    //手机适配
    let uWidth = 375; // 标准尺寸宽度
    function setFontSize(){
      var FontSize = document.documentElement.clientWidth/(uWidth/16)
      document.documentElement.style.fontSize = FontSize + 'px'
    }
    setFontSize()
    window.addEventListener('resize',setFontSize)
  </script>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
